var express = require('express');
var router = express.Router();
const {list,sj}=require('../modules/module')

router.get('/list',async(req,res)=>{
  let data=await list.find()
  res.send({
    data
  })
})

router.get('/sj',async(req,res)=>{
  let data=await sj.find()
  res.send({
    data
  })
})


/* GET home page. */
// router.get('/', function(req, res, next) {
//   res.render('index', { title: 'Express' });
// });

module.exports = router;
